﻿using System.Collections.Generic;
using ShopB2C.Entity;
using ShopB2C.ViewModels;

namespace ShopB2C.Interfaces {
    /// <summary>
    /// 购买咨询接口
    /// </summary>
    public interface IConsult {

        #region Consult

        /// <summary>
        /// 修改购买咨询
        /// </summary>
        /// <param name="ce">ConsultEntity</param>
        void ConsultUpdate(ConsultEntity ce);
        /// <summary>
        /// 删除或审核购买咨询
        /// </summary>
        /// <param name="consultIds">购买咨询 id 字符串，“,”分隔</param>
        void ConsultDelete(string consultIds);
        /// <summary>
        /// 获取指定 id 的购买咨询
        /// </summary>
        /// <param name="consultId">购买咨询 id</param>
        /// <returns>ConsultEntity</returns>
        ConsultEntity GetConsultById(int consultId);
        /// <summary>
        /// 获取购买咨询列表
        /// </summary>
        /// <param name="cp">购买咨询参数传递类</param>
        /// <returns>List</returns>
        List<ConsultEntity> GetConsultList(ConsultParameters cp);
        /// <summary>
        /// 获取有购买咨询的商品
        /// </summary>
        /// <param name="audit">审核条件</param>
        /// <param name="pageSize">分页数量</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>List</returns>
        List<ProductEntity> GetConsultProduct(bool? audit, int pageSize, int pageIndex, out int pageCount);

        #endregion

    }
}
